package com.example.huixingzheng.bean;

/**
 * 功能：
 * 作者：
 * 日期：2025年03月17日
 */
public class DataModel {
    private String DeviceName;
    private float Temperature;
    private float RelativeHumidity;
    private int LightLux;
    private int Smokescope;

    public void Device(String name, float temperature, float humidity, int light, int smoke) {
        this.DeviceName = name;
        this.Temperature = temperature;
        this.RelativeHumidity = humidity;
        this.LightLux = light;
        this.Smokescope= smoke;
    }
    public void Device()
    {

    }
    // Getter和Setter
    public String getName() {
        return DeviceName ;
    }

    public float getTemperature() {
        return Temperature;
    }

    public float getHumidity() {
        return RelativeHumidity;
    }

    public int getLight() {
        return LightLux;
    }

    public int getSmoke() {return Smokescope;}

    public void setName(String s)
    {
        DeviceName=s;
    }

    public void setTemperature(int i)
    {
        Temperature=i;
    }

    public void setHumidity(int i)
    {
        RelativeHumidity=i;
    }

    public void setLight(int i)
    {
        LightLux=i;
    }

    public void setSmoke(int i)
    {
        Smokescope=i;
    }
}
